home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_015 / okidatadump / makefile < prev    next >
Makefile  |  1992-05-06  |  3KB  |  99 lines

  1. # works with make/pdmake from Fred Fish's disk #2
  2. # I use the Lattice C 3.03 from a disk called "CC" and the assembler from a
  3. # disk called "ASM". After you have modified the 3 macros at the beginning
  4. # of the makefile you should copy the makefile to RAM: and then cd to RAM:
  5. # This way I have the minimum disk changes with just one drive.
  6. # It compiles and links both the Okidata ML92 printer driver and the Dump
  7. # Workbench routines.
  8.  
  9. SOURCE    = C-work:printer    # redefine with the destination of your 
  10.                 # source directory
  11. CCDISK    = cc:            # redefine with name of your cc disk
  12. ASMDISK    = ASM:            # redefine with name of your asm disk
  13.  
  14. CFLAGS1    = -iRAM: -i$(CCDISK)include/ -i$(CCDISK)include/lattice/
  15. ASMOPT    = -i RAM:+$(ASMDISK)include
  16.  
  17. CC1    = $(CCDISK)c/lc1 $(CFLAGS1) RAM:
  18. CC2    = $(CCDISK)c/lc2 RAM:
  19. ASM    = $(ASMDISK)c/Assem RAM:
  20.  
  21. OBJS1    = $(SOURCE)/data.o    $(SOURCE)/dospecial.o    $(SOURCE)/init.o
  22. OBJS2    = $(SOURCE)/tag.o    $(SOURCE)/render.o
  23. OBJS    = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) $(OBJS5)
  24.  
  25. doit :    clear $(SOURCE)/Okidata_ML92 $(SOURCE)/DumpWB init
  26.  
  27. init :
  28.     assign CWD: $(SOURCE)
  29.     assign cclib: $(CCDISK)lib
  30.     assign ASMlib: $(ASMDISK)lib
  31.     copy CWD:macros.i RAM:
  32.     copy CWD:Dump.h RAM:
  33.  
  34. clear :
  35.     assign ASMlib:
  36.     assign cclib:
  37.     assign CWD:
  38.  
  39. $(SOURCE)/Okidata_ML92 : $(OBJS) $(SOURCE)/printer.link
  40.     delete RAM:macros.i
  41.     copy $(SOURCE)/printer.link to RAM:
  42.     $(CCDISK)c/alink WITH RAM:printer.link
  43.     copy RAM:Okidata_ML92 DEVS:printers
  44.     copy RAM:Okidata_ML92 CWD:
  45.     delete RAM:Okidata_ML92 RAM:printer.link
  46.  
  47. $(SOURCE)/data.o :    $(SOURCE)/data.c
  48.     copy $(SOURCE)/data.c RAM:
  49.     $(CC1)data
  50.     $(CC2)data
  51.     copy RAM:data.o CWD:
  52.     delete RAM:data.?
  53.  
  54. $(SOURCE)/dospecial.o :    $(SOURCE)/dospecial.c
  55.     copy $(SOURCE)/dospecial.c RAM:
  56.     $(CC1)dospecial
  57.     $(CC2)dospecial
  58.     copy RAM:dospecial.o CWD:
  59.     delete RAM:dospecial.?
  60.  
  61. $(SOURCE)/render.o :    $(SOURCE)/render.c
  62.     copy $(SOURCE)/render.c RAM:
  63.     $(CC1)render
  64.     $(CC2)render
  65.     copy RAM:render.o CWD:
  66.     delete RAM:render.?
  67.  
  68. $(SOURCE)/init.o : $(SOURCE)/init.asm $(SOURCE)/macros.i
  69.     copy $(SOURCE)/init.asm RAM:
  70.     $(ASM)init.asm -o init.o $(ASMOPT)
  71.     copy RAM:init.o CWD:
  72.     delete RAM:init.\#?
  73.  
  74. $(SOURCE)/tag.o : $(SOURCE)/tag.asm
  75.     copy $(SOURCE)/tag.asm RAM:
  76.     $(ASM)tag.asm -o tag.o $(ASMOPT)
  77.     copy RAM:tag.o CWD:
  78.     delete RAM:tag.\#?
  79.  
  80. $(SOURCE)/DumpWB : $(SOURCE)/DumpWB.o $(SOURCE)/DumpRPort.o
  81.     $(CCDISK)c/alink cclib:Lstartup.obj+cwd:DumpWB.o+cwd:DumpRPort.o TO RAM:DumpWB LIBRARY cclib:lc.lib,cclib:amiga.lib
  82.     copy RAM:DumpWB CWD:
  83.     delete RAM:DumpWB
  84.  
  85. $(SOURCE)/DumpWB.o : $(SOURCE)/DumpWB.c Dump.h
  86.     copy $(SOURCE)/DumpWB.c RAM:
  87.     $(CC1)DumpWB
  88.     $(CC2)DumpWB
  89.     copy RAM:DumpWB.o CWD:
  90.     delete RAM:DumpWB.?
  91.  
  92. $(SOURCE)/DumpRPort.o : $(SOURCE)/DumpRPort.c Dump.h
  93.     copy $(SOURCE)/DumpRPort.c RAM:
  94.     $(CC1)DumpRPort
  95.     $(CC2)DumpRPort
  96.     copy RAM:DumpRPort.o CWD:
  97.     delete RAM:DumpRPort.?
  98.  
  99.